package com.practice.service.impl;/**
 * Created by mayn on 2019/10/6.
 */

import com.practice.service.HelloService;
import com.practice.utils.R;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName
 * @Description TODO
 * @Author mayn
 * @Date
 * @Version 1.0
 */
@Component
public class HelloServiceHystrix implements HelloService {

  @Override
  public R hello(@RequestParam(value = "name") String name){
     return R.ok("hello " +name+", this messge send failed ");
  };

}
